ExamPlay Light Logo
Войти

Computer Science for IGCSE & O level - Programming (Section 12 - No. 11)

What is the outcome of the given code using count-controlled loop: ``` For number to 10 to 50 Step 5 Console.WriteLine(number) Next number ```
Prints numbers from 10 to 50 increasing by 5.
Prints a single number only.
The loop will not execute, as the end value is greater than start value.
It will print the value 50 only.

Объяснение

The loop will iterate from 10 to 50, incrementing by 5 each time, printing the current value of the number.

Комментарии (0)

Войдите, чтобы оставить комментарий
Реклама
BrainBehindX Inc Logo
©2026; Питаться от BrainBehindX Inc